<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>社区咨询服务详情</title>
</head>
  <body>
    <div class="page unitBox">
      <form method="post" action="save_edit_community_consultation" class="pageForm required-validate edit_community_consultation_form" onsubmit="return validateCallback(this, dialogAjaxDone)" novalidate="novalidate">
        <div class="pageContent">
          <div class="pageFormContent edit-consultation-form" layouth="97" style="overflow-scrolling: auto;">
            <dl>
              <dt>小区名称：</dt>
              <dd>
                ${consultation.blockName}
              </dd>
            </dl>
            <dl>
              <dt>用户账号：</dt>
              <dd>
                ${consultation.nickname}
              </dd>
            </dl>
            <dl style="height: 80px;">
              <dt>咨询内容：</dt>
              <dd style="height: 60px;">
                <textarea readonly="readonly" cols="30" rows="5">    ${consultation.askIngContent}</textarea>
              </dd>
            </dl>
            <dl>
              <dt>状态：</dt>
              <dd>
                <c:if test="${consultation.status == 0}">
                  待回复
                </c:if>
                <c:if test="${consultation.status == 1}">
                  已回复
                </c:if>
              </dd>
            </dl>
            <c:if test="${consultation.status == 1}">
              <dl>
                <dt>回复内容：</dt>
                <dd>
                    ${consultation.replyContent}
                </dd>
              </dl>
              <dl>
                <dt>回复时间：</dt>
                <dd>
                  <fmt:formatDate value="${consultation.replyTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
                </dd>
              </dl>
            </c:if>
            <dl>
              <dt>创建时间：</dt>
              <dd>
                <fmt:formatDate value="${consultation.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
              </dd>
            </dl>
            <c:if test="${!empty remarks}">
              <dl>
                <h2>备注区域</h2>
                <hr>
              </dl>
            </c:if>
            <c:forEach items="${remarks}" var="remark">
                <dl style="height: auto;">
                  <dt>${remark.title}</dt>
                  <dd>
                    <textarea cols="20" rows="5">
                        ${remark.remark}
                    </textarea>
                  </dd>
                </dl>
            </c:forEach>
          </div>
        </div>
      </form>
    </div>
  </body>
</html>
